DoNotCallStudentCrossReference 
EntityType  Independent 
Logical Entity Name  DoNotCallStudentCrossReference 
Default Table Name  SyNationalDNCStudentXRef 
Logical Only  NO 
Definition 
 
Note 
 

DoNotCallStudentCrossReference Attributes 
Attribute/Logical Rolename  Domain  Datatype  NULL  Definition 
Id(PK)    INTEGER  NO 
 
StudentId(FK)    INTEGER  YES 
 
StudentRelationshipAddressId(FK)    INTEGER  YES 
 
TableName    CHAR(10)  NO 
 
ColumnName    CHAR(10)  NO 
 
PhoneNumber    CHAR(10)  NO 
 
OriginalPhoneNumber    CHAR(16)  NO 
 
LastModifiedUserId(FK)    INTEGER  NO 
 
CreatedDateTime    DATETIME  NO 
 
LastModifiedDateTime    DATETIME  NO 
 
RowVersion    TIMESTAMP/DATE  NO 
 

DoNotCallStudentCrossReference Keys 
Key Name  Key Type  Keys 
SyNationalDNCStudentXRef_PhoneNumber_N_N_IDX  Inversion Entry  PhoneNumber 
SyNationalDNCStudentXRef_UserID_N_N_IDX  Inversion Entry  LastModifiedUserId 
syNationalDNCStudentXRef_SyStudentID_N_N_IDX  Inversion Entry  StudentId 
syNationalDNCStudentXRef_SyAddressId_ColumnName_TableName_N_N_IDX  Inversion Entry  StudentRelationshipAddressId, ColumnName, TableName 
SyNationalDNCStudentXRef_SyNationalDNCStudentXRefID_U_C_IDX  PrimaryKey  Id 

DoNotCallStudentCrossReference Relationships 
Parent Relationships: 
Entity Name  Type  Cardinality  Business Name  VerbPhrase  InversePhrase  Foreign Keys  Is Supertype 
StudentRelationshipAddress  Non-Identifying  Zero or One to Zero or More        StudentRelationshipAddressId  NO 
Student  Non-Identifying  Zero or One to Zero or More        StudentId  NO 
Staff  Non-Identifying  One To Zero or More        LastModifiedUserId  NO 
Child Relationships: 
Entity Name  Type  Cardinality  Business Name  VerbPhrase  InversePhrase  Foreign Keys  Is Subtype 

DoNotCallStudentCrossReference Check Constraints 
Check Constraint Name  CheckConstraint 
Chk_SyNationalDNCStudentXRef_TableName_ColumnName  ([TableName]='SyStudent' AND ([ColumnName]='OtherPhone' OR ([ColumnName]='BadPhone' OR ([ColumnName]='WorkPhone' OR [ColumnName]='Phone' OR [ColumnName]='MobileNumber'))) OR [TableName]='SyAddress' AND ([ColumnName]='SecondPhone' OR ([ColumnName]='WorkPhone' OR [ColumnName]='Phone'))) 
Chk_SyNationalDNCStudentXRef_TableName_SyStudentID_SyAddressID  ([TableName] = 'SyStudent' and [SyStudentID] is not null or [TableName] = 'SyAddress' and [SyAddressID] is not null)